forum

home / developersection / forums / how to use ternary operator in razor

How to use ternary operator in Razor

Sachin Singh 2921 26-Mar-2016
Hi Everyone,

I have a view and i want to use ternary operator on view with the folliowing condition:
I want to check authenticity of the user if they are authenticate then doing some other task until unless doing other task with the help of User.Identity.IsAuthenticated .
Can anyone help
Thank you.



Updated on 26-Mar-2016
Can you answer this question?

Answer

1 Answers

Liked By